<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
    <h1>登录</h1>
    <form action="" method="post">
        <p>
            <label for="un">用户名</label>
            <input required type="text" id="un" name="un">
        </p>
        <p>
            <label for="pwd">密码</label>
            <input required type="password" id="pwd" name="pwd">
        </p>
        <p>
            {% if error %}
                <p style="color: red">{{ error }}</p>
            {% endif %}
        </p>
        <p>
            <input type="submit" value="登录">
        </p>
    </form>
</body>
</html>